<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>芙蓉346 - 首页</title>
	<link type="image/x-icon"  th:href="@{/favicon.ico}" href="/favicon.ico" rel="icon">
	<link rel="stylesheet"  th:href="@{/css/index.css}" href="css/index.css" />
    <link rel="stylesheet" th:href="@{/css/index_1.css}" href="static/css/index_1.css" />
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/jquery-1.12.4.min.js}" src="static/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/form.js}" src="static/js/form.js"></script>
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/validate.js}" src="static/js/validate.js"></script><link rel="stylesheet" type="text/css" th:href="@{/css/style.css}" href="static/css/style.css" />
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/artdialog.js}" src="static/js/artdialog.js"></script><script type="text/javascript" charset="UTF-8" th:src="@{/static/js/iframetools.js}" src="static/js/iframetools.js"></script><link rel="stylesheet" type="text/css" th:href="@{/css/white.css}" href="static/css/white.css" />
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/arttemplate.js}" src="static/js/arttemplate.js"></script><script type="text/javascript" charset="UTF-8" th:src="@{/static/js/arttemplate-plugin.js}" src="static/js/arttemplate-plugin.js"></script>
	<script type='text/javascript' th:src="@{/js/site.js}" src='static/js/site.js'></script>
	<script type='text/javascript' th:src="@{/js/public.js}" src='static/js/public.js'></script>

    <meta name='keywords' content='开源商城系统,开源网店系统,开源电子商务,商城系统源码,多用户商城源码'>
<meta name='description' content='iwebshop是基于php开发b2c2c开源多用户商城系统,支持商家入驻,支持微商城,手机移动商城,APP商城多为一体的电子商务系统'>
</head>
<body>
<!--block-->
<div class="public-top-layout w">
    <div class="topbar wrapper">
        <div class="user-entry">


            <a href="{url}" title="首页" alt="首页">您好，欢迎来到iWebShop开源商城</a>！
            <marquee behavior="alternate" style="color:blue;font-size:16px;" th:if="${session.lgnUserName !=null}" th:text="${session.lgnUserName}+'&nbsp;&nbsp;，芙蓉346邓家组欢迎你'"></marquee>
                        <span> <a th:href="@{/login/to_login}" href="/templates/login">登录</a> | </span>
            <span> <a th:href="@{/login/to_register}" href="/templates/register">注册</a> </span>
                        <div  style="float:right;"><iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&amp;id=10" width="300" height="20" frameborder="0" scrolling="no"></iframe></div>
        </div>

        <div class="quick-menu">
            <dl>
                <dt><a href="/ucenter/index">我的账户</a><i></i></dt>
            </dl>

            <dl>
                <dt><a href="/ucenter/order">我的订单</a><i></i></dt>
            </dl>
            <dl>
                <dt><a href="/simple/seller">申请开店</a><i></i></dt>
            </dl>

            <dl>
                <dt><a href="/seller/index">商家管理</a><i></i></dt>
            </dl>
            <dl>
                <dt><a href="/site/help_list">使用帮助</a><i></i></dt>
            </dl>

        </div>
    </div>
</div>
<!--block-->
<!--block-->
<div class="header-wrap">
    <header  class="public-head-layout wrapper">
        <h1 class="site-logo"><a href="/"><img th:src="@{/picture/logo.gif}" src="static/picture/logo.gif" class="pngFix"></a></h1>
        <div class="head-search-bar">
            <form  th:action="@{/product/search}" method='get'  class="search-form">
                <input type='hidden' name='controller' value='site' />
                <input type='hidden' name='action' value='search_list' />
                <input name="searchText"  type="search" class="input-text" th:value="${searchText}" value="" maxlength="60" placeholder="请输入您要搜索的商品关键字" >
                <input type="submit" id="button" value="搜索" class="input-submit">
            </form>

            <div class="keyword">热门搜索：
                <ul>
                                                <li> <a href="/search.html?word=%E7%9C%9F%E7%9A%AE%E5%A5%B3%E5%8C%85">真皮女包</a></li>
                                                <li> <a href="/search.html?word=%E8%A1%AC%E8%A1%A3">衬衣</a></li>
                                                <li> <a href="/search.html?word=%E8%BF%9B%E5%8F%A3%E7%89%9B%E5%A5%B6">进口牛奶</a></li>
                                 </ul>
            </div>
        </div>
        <div class="head-user-menu">
            <dl class="my-mall">
                <dt><span class="ico"></span>我的商城<i class="arrow"></i></dt>
                <dd>
                    <div class="sub-title">
                        <h4></h4>
                        <a href="/ucenter/index" class="arrow">我的用户中心<i></i></a></div>
                    <div class="user-centent-menu">
                        <ul>
                            <li><a href="/ucenter/order" class="arrow">我的订单<i></i></a></li>
                            <li><a href="/ucenter/integral" class="arrow">我的积分<i></i></a></li>
                            <li><a href="/ucenter/account_log" class="arrow">账户资金<i></i></a></li>
                            <li><a href="/ucenter/message" class="arrow">我的消息<i></i></a></li>
                            <li><a href="/ucenter/info" class="arrow">个人资料<i></i></a></li>
                            <li><a href="/ucenter/redpacket" class="arrow">我的优惠券<i></i></a></li>

                        </ul>
                    </div>
                </dd>
            </dl>
            <dl class="my-cart" name="mycart">
                <dt><span class="ico"></span><a th:href="@{/product/show_car}" >购物车结算</a><i class="arrow"></i></dt>
                <div class="addcart-goods-num" name="mycart_count" >0</div>
                <dd id="div_mycart">
                </dd>

                <!--购物车模板 开始-->
                <script type='text/html' id='cartTemplete'>
                        <div class="sub-title">
                            <h4>最新加入的商品</h4>
                        </div>
                        <div class="incart-goods">
                            <%for(var item in goodsData){%>
                            <%var data = goodsData[item]%>
                                <dl id="site_cart_dd_<%=item%>">
                                    <dt class="goods-name">
                                        <a href="/site/products/id/<%=data['goods_id']%>">
                                            <%=data['name']%>
                                        </a>
                                    </dt>
                                    <dd class="goods-thumb">
                                        <a href="/site/products/id/<%=data['goods_id']%>" title="<%=data['name']%>">
                                            <img src="<%=webroot(data['img'])%>">
                                        </a>
                                    </dd>
                                    <dd class="goods-sales"></dd>
                                    <dd class="goods-price"><em>¥<%=data['sell_price']%> x <%=data['count']%></em></dd>
                                    <dd class="handle"><em><a href="javascript:void(0);" onclick="removeCart('<%=data['id']%>','<%=data['type']%>');$('#site_cart_dd_<%=item%>').hide('slow');">删除</a></em></dd>
                                </dl>
                            <%}%>
                        </div>
                        <%if(!goodsData){%>
                        <div class="incart-goods"><div class="no-order"><span>您的购物车中暂无商品，赶快选择心爱的商品吧！</span></div></div>
                        <%}%>

                        <div class="checkout"> <span class="total-price"></span>
                            <a href="/cart.html" class="btn-cart">结算购物车中的商品</a>
                        </div>
                </script>
                <!--购物车模板 结束-->



            </dl>
        </div>
    </header>
</div>
<!--block-->
<!--block-->
<nav class="public-nav-layout">
    <div class="wrapper">
        <div class="all-category">
            <div class="title">
                <!-- <div class="all_sort">-->
                <h3><a href="">所有商品分类</a></h3>
                <i class="arrow"></i></div>
            <div class="category" style="float:left; width:210px;height:250px">


                <!--商品分类-->
                <ul>
				<span th:each="big : ${categoryMap['big']}">
				<dt th:text="${big.epcName}"  class="biaoti"></dt>
				<dd th:each="small : ${categoryMap['small']}">
					<a  th:if="${big.epcId == small.epcParentId}" th:href="@{/product/cate_product_list/{smallId}(smallId=${small.epcId})}" href="product-list.html"
                        th:text="${small.epcName}">图书</a></dd>
				</span>
                </ul>








            </div>    </div>
        <ul class="site-menu">
            <li><a href="/" class="current">首页</a></li>
                        <li><a href="http://www.aircheng.com">官网首页<span> </span></a></li>
                        <li><a href="/site/seller">商家列表<span> </span></a></li>
                        <li><a href="/admin/index">后台管理<span> </span></a></li>
                        <li><a href="/seller/index">商家管理<span> </span></a></li>
                    </ul>
    </div>
</nav>
<!--block-->

<div class="clear"></div>
<script type="text/javascript" charset="UTF-8" src="static/js/jquery.bxslider.min.js"></script><link rel="stylesheet" type="text/css" th:src="@{/css/jquery.bxslider.css}" href="static/css/jquery.bxslider.css" />
<style>
.category {
    display: block !important;
}
</style>
<div class="two_menu">
    <!-- banner 开始 -->
    <div id="banner">
                <ul class="bxslider">
                    <li title="java开发实训芙蓉男团">
                        <a href="http://www.thymeleaf.org" target="_blank"><img th:src="@{/picture/d546466ec68244cf879d8950154f7cbb.gif}" src="static/picture/d546466ec68244cf879d8950154f7cbb.gif" width="790px" height="250px" title="java开发实训芙蓉男团" /></a>
                    </li>

                </ul>

            </div>
    <!-- banner 结束 -->

    <div class="notice">
        <h1 style="padding-top: 10px;">新闻动态</h1>
        <ul>
            <li th:each="news : ${ebNewsList}">

                <a th:href="@{/news/detail(enId=${news.enId})}" href="news-view.html" target="_blank"
                   th:text="${news.enTitle}">抢钱啦</a>
                <!--						<a href="news-view.html" target="_blank" th:text="${news.enTitle}">抢钱啦</a>-->
            </li>

        </ul>
    </div>

</div>
<div class="clear"></div>

<!--商品-->
<div class="clear"></div>
<!--clearfix-->
<div class="clearfix111">
    <!--tabs rcmd f-l-->
    <div class="tabs rcmd ">
        <!--tab-title-->
        <div class="tab-title clearfix111">

            <li class="tab-title-hover">
                <h2 class="t14">商品选购</h2>
            </li>

            <li style="float: right; text-align: right">
                <a href="/groupon.html" style="line-height: 39px;">更多>></a>
            </li>
        </div>
        <!--tab-title-->
        <div class="clear"></div>
        <!--tab-cnt-->
        <div class="tab-cnt">
            <!--tab-item-hover-->
            <div class="tab-item">



                <ul class="goods-list clearfix">
                    <li th:each="prod : ${ebProductList}">
                        <dl>
                            <dt>
                        <a class="goods-img" th:href="@{/product/detail(epId=${prod.epId})}" href="product-view.html" target="_blank">
                            <img th:src="@{'/picture/'+${prod.epFileName}}" src="picture/"+${prod.epFileName}>
                        </a></dt>
                            <dd class="goods_title"><a th:href="@{/product/detail(epId=${prod.epId})}" href="product-view.html" target="_blank" th:text="${prod.epName}">乐视TV（Letv） S50 Air FL2041全配版 50英寸 2D智能LED液晶 超级电视（红</a></dd>
                            <dd class="price" th:text="'￥'+${prod.epPrice}">￥108.0</dd>
                        </dl>
                    </li>

                </ul>

                <div >

                    <ul class="frfrfr">
                        <li><a th:if="${curPage!=1}" th:href="@{/front/index(pSize=${curPage-1})}">上一页</a></li>
                        <li  th:each="num : ${#numbers.sequence(1,maxPage)}"
                        >
                            <a th:class="${curPage==num?'current':''}" th:href="@{/front/index(pSize=${num})}" th:text="${num}"></a>
                        </li>

                        <li><a href="#"
                               th:if="${ebProductPage.hasNext()}"
                               th:href="@{/front/index(pSize=${curPage+1})}">
                            下一页</a></li>

                        <li ><a th:text="'共'+${maxPage}+'页'"></a></li>
                    </ul>
                </div>

            </div>

            <div class="clear"></div>
            <!--tab-item-hover-->


        </div>
        <!--tab-cnt-->
    </div>
    <!--tabs rcmd f-l-->

</div>
<div class="clear"></div>






<script type='text/javascript'>
//dom载入完毕执行
jQuery(function()
{
	//幻灯片开启
	$('.bxslider').bxSlider({'mode':'fade','captions':true,'pager':false,'auto':true});

    //显示抢购倒计时
	var cd_timer = new countdown();
				cd_timer.add(2);
			cd_timer.add(14);
			cd_timer.add(15);
			cd_timer.add(16);
		
	//首页商品变色
	var colorArray = ['green','yellow','purple'];
	$('div[name="showGoods"]').each(function(i)
	{
		$(this).addClass(colorArray[i%colorArray.length]);
	});
});

//电子邮件订阅
function orderinfo()
{
	var email = $('[name="orderinfo"]').val();
	if(email == '')
	{
		alert('请填写正确的email地址');
	}
	else
	{
		$.getJSON('/site/email_registry',{email:email},function(content){
			if(content.isError == false)
			{
				alert('订阅成功');
				$('[name="orderinfo"]').val('');
			}
			else
				alert(content.message);
		});
	}
}
</script>
<div class="clear"></div>

<div style="height: 30px;width: 100%;"></div>
<div id="faq">
    <div class="wrapper">
        
        <div class="footer" style="text-align:center"><p class="copyright">Powered by <a href="http://www.aircheng.com">芙蓉346</a></p>Copyright © 2005-2014 <a class="copyys" target="_blank" href="http://beian.miit.gov.cn/">邓家组346号</a></div>    </div>
</div>

<script type="text/javascript">
    $(function(){
        //首页左侧分类菜单
        $(".category ul.menu").find("li").each(
                function() {
                    $(this).hover(
                            function() {
                                var cat_id = $(this).attr("cat_id");
                                var menu = $(this).find("div[cat_menu_id='"+cat_id+"']");
                                menu.show();
                                $(this).addClass("hover");
                                if(menu.attr("hover")>0) return;
                                //menu.masonry({itemSelector: 'dl'});
                                var menu_height = menu.height();
                                if (menu_height < 60) menu.height(120);
                                menu_height = menu.height();
                                var li_top = $(this).position().top;
                                menu.attr("hover",1);
                            },
                            function() {
                                $(this).removeClass("hover");
                                var cat_id = $(this).attr("cat_id");
                                $(this).find("div[cat_menu_id='"+cat_id+"']").hide();
                            }
                    );
                }
        );
        $(".head-user-menu dl").hover(function() {
                    $(this).addClass("hover");
                },
                function() {
                    $(this).removeClass("hover");
                });
    });
</script>
</body>
</html>
<script type="text/javascript">
_webUrl = "/_controller_/_action_/_paramKey_/_paramVal_";_themePath = "/views/nongrj/";_skinPath = "/views/nongrj/skin/default/";_webRoot = "/";
</script>